package com.blb.ioc.demo4.servlet;

import com.blb.ioc.demo4.service.HelloService;
import com.blb.ioc.demo4.ApplicationContextUtil;

public class HelloServlet {

    private HelloService helloService = (HelloService) ApplicationContextUtil.getBean(HelloService.class);

    public void doGet(){
        System.out.println(helloService.hello());
    }

    public static void main(String[] args) {
        new HelloServlet().doGet();
    }
}
